package com.hr.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * @author DSL
 * @create 2024-10-28 17:32
 */
public class springIntegration extends AbstractAnnotationConfigDispatcherServletInitializer {
//    指定root容器
    @Override
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{MapperJavaConfig.class,
                ServiceJavaConfig.class,
                DataSourceJavaConfig.class
        };
    }
//    指定web容器的配置类
    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{WebMvcJavaConfig.class};
    }
//指定拦截路径
    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
